this.BX=this.BX||{};this.BX.Mobile=this.BX.Mobile||{};this.BX.Mobile.Field=this.BX.Mobile.Field||{};(function(i,t){"use strict";var e=window.BX,o=window.BXMobileApp;var l=function(){var i=function i(t){this.node=t;this.click=e.delegate(this.click,this);this.callback=e.delegate(this.callback,this);e.bind(this.node,"click",this.click);this.isImage=this.node.getAttribute("data-is-image")==="yes"};i.prototype={click:function i(t){this.show();return e.PreventDefault(t)},show:function i(){var t=this.node.getAttribute("data-url");var e=this.node.textContent.trim();if(this.isImage){o.UI.Photo.show({photos:[{url:t,description:e}]})}else{o.UI.Document.open({url:t,filename:e})}}};return i}();window.app.exec("enableCaptureKeyboard",true);e.Mobile.Field.File=function(i){this.init(i)};e.Mobile.Field.File.prototype={__proto__:e.Mobile.Field.prototype,bindElement:function i(t){var o=null;if(e(t)){o=new l(t)}return o}}})(this.BX.Mobile.Field.File=this.BX.Mobile.Field.File||{},BX);
//# sourceMappingURL=mobile.map.js